package org.acghub.mtdb.core;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Trace {
    public static void fatal(String m, Throwable e) {
        log.error(m, e);
    }

    public static void fatal(String m) {
        log.error(m);
    }

    public static void warn(String s, Throwable t) {
        log.warn(s, t);
    }

    public static void warn(String s) {
        log.warn(s);
    }

    public static boolean isDebugEnabled() {
        return log.isDebugEnabled();
    }

    public static void debug(String s) {
        log.debug(s);
    }
    public static void debug(String format, Object... args) {
        log.debug(format, args);
    }

    public static void error(String s, Throwable t) {
        log.error(s, t);
    }
    public static void error(String format, Object... arguments) {
        log.error(format, arguments);
    }
}
